export const  hasPermission={
    install(Vue){
        Vue.directive('hasPermission', {
            bind: function (el, binding, vnode) {
                const perms= sessionStorage.getItem("perms")
                if(perms.indexOf(binding.value)===-1){
                    el.style.display='none'
                }
            }
        })
    }
}